﻿namespace LitFramework
{
    /// <summary>
    /// 单例类接口
    /// </summary>
    public interface ISingleton
    {
        /// <summary>
        /// 初始化
        /// </summary>
        void OnInit();

        /// <summary>
        /// 销毁
        /// </summary>
        void OnDestroy();
    }

    public interface ISingletonUpdate
    {
        /// <summary>
        /// 执行顺序
        /// </summary>
        int Order { get; }

        /// <summary>
        /// 刷新
        /// </summary>
        void OnUpdate();
    }
}